
#include "hal_flash.h"
#include "OnBoard.h"

#define ACTIVE_LOW        !
#define ACTIVE_HIGH       !!    /* double negation forces result to be '1' */


#define BUTTON1_BV          BV(2)
#define BUTTON1_SBIT        P0_2
#define BUTTON1_POLARITY    ACTIVE_LOW
#define BUTTON1_PRESSED()     (BUTTON1_POLARITY(BUTTON1_SBIT))


#define BUTTON2_BV          BV(4)
#define BUTTON2_SBIT        P0_4
#define BUTTON2_POLARITY    ACTIVE_LOW
#define BUTTON2_PRESSED()     (BUTTON2_POLARITY(BUTTON2_SBIT))
__interrupt void P0_Interrupt(void);
__interrupt void P1_Interrupt(void);
__interrupt void P2_Interrupt(void);
void user_key_int(void);
void user_key_debounce(void);